package com.qn.dao;

import com.qn.entity.Industry;
import com.qn.entity.SubIndustry;
import com.qn.entity.location.City;
import com.qn.entity.location.Provinces;
import com.qn.entity.location.Region;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author olo
 */
@Repository
public interface FilterInfoDao {
    Integer insertIndustryInfo(@Param("industry") Industry industries);

    Integer insertIndustryInfoWithSub(@Param("subIndustrys") List<SubIndustry> subIndustry, @Param("parentId") Integer parentId);

    List<Industry> getIndustryInfo();

    List<Provinces> getLocationsInfo();

    void insertProvinces(@Param("provinces") Provinces provinces);

    void insertCity(@Param("city") City city, @Param("pid") Integer pid);

    void insertRegion(@Param("regions") List<Region> regions, @Param("cid") Integer id);
}
